import { Injectable } from '@nestjs/common';
import { PrismaService } from './common/prisma/prisma.service';

@Injectable()
export class AppService {
  constructor(private prisma: PrismaService) {}
  getHello(): string {
    return 'Hello World!' + process.env.PORT;
  }
  getInfo(): any {
    // 只负责请求处理转发，不负责业务逻辑
    return this.prisma.user.findMany();
  }
}
